package com.mine.androidlearn.api.exception;

/**
 * API的通用异常类
 *
 * @author mine
 * @version V1.0 2018/8/6 22:31
 */

public class ApiException extends RuntimeException {
    public Integer code;
    public String msg;

    public ApiException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getApiExceptionMessage() {
        return msg;
    }
}
